/********************************************************/
/*	Copyright (C) 2016 Gong Li Bin		 	*/
/*	Project:	GoLib-1.0.0			*/
/*	Author:		gong_libin			*/
/*	Date:		2016_01_01			*/
/*	File:		GoMysqlTest.go			*/
/********************************************************/

// go get github.com/go-sql-driver/mysql

package main

import (
	. "GoGlb"
	S "GoSql"
	_ "github.com/go-sql-driver/mysql"
)

func main() {
	s := new(S.GoMysql)
	if e := s.GoMysqlOpen("root:123456@tcp(192.168.0.72:3306)/CmAtd?charset=utf8"); nil == e {
		if m := s.GoMysqlSelect("SELECT * FROM adfrm"); nil != m {
			s.GoMysqlDisplay(m)
		}
		s.GoMysqlClose()
	} else {
		GoPrint("Failed to GoMysqlOpen\n")
	}
}
